﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.BaseLibrary.Domain;

namespace DepartmentWork.Migrator.Data
{
    public class PROJECT_DEVELOP_TASK : IEntity
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        [DisplayName("任务ID"), Required, Key]
        public Guid TASK_ID { get; set; }

        /// <summary>
        /// 隶属项目ID
        /// </summary>
        [DisplayName("隶属项目ID"), Required]
        public Guid PROJECT_ID { get; set; }

        /// <summary>
        /// 隶属任务书ID
        /// </summary>
        //[DisplayName("隶属任务书ID"), Required]
        //public Guid TASKBOOK_ID { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        [DisplayName("任务名称"), Required]
        public string TASK_NAME { get; set; }


        /// <summary>
        /// 任务描述
        /// </summary>
        [DisplayName("任务描述"), Required]
        public string TASK_CONTEXT { get; set; }

        /// <summary>
        /// 任务级别
        /// </summary>
        [DisplayName("任务级别"), Required]
        public int TASK_LEVEL { get; set; }

        /// <summary>
        /// 任务分配时长
        /// </summary>
        [DisplayName("任务分配时长"), Required]
        public int HOUR { get; set; }

        /// <summary>
        /// 任务预定结束时间
        /// </summary>
        [DisplayName("任务预定结束时间"), Required]
        public DateTime DEADTIME { get; set; }

        /// <summary>
        /// 任务创建时间
        /// </summary>
        [DisplayName("BUG编号"), Required]
        public DateTime CREATE_TIME { get; set; }

        /// <summary>
        /// 分配到的用户ID
        /// </summary>
        [DisplayName("分配到的用户ID"), Required]
        public Guid HANDTO_USER { get; set; }

        /// <summary>
        /// 任务创建人
        /// </summary>
        [DisplayName("任务创建人"), Required]
        public Guid CREATER { get; set; }

        /// <summary>
        /// 确认标识
        /// 0 未提交
        /// 1 已提交
        /// 2 已审核
        /// </summary>
        [DisplayName("确认标识")]
        public int CHECK_FLAG { get; set; }

        /// <summary>
        /// 确认时间
        /// </summary>
        [DisplayName("确认时间")]
        public DateTime? CHECK_TIME { get; set; }
        
    }
}
